{include file='imobile_header.tpl'}

<div id="topbar">
  <div id="leftnav">
    <a href="user_messages.php">{lang_print id=11340033}</a>
  </div> 
  <div id="title"> 
    {lang_print id=11340039}
  </div>
  <div id="rightbutton"><a href="user_messages_new.php">{lang_print id=11340012}</a></div>
</div>

<div id="content"> 

  <form action="imobile.php" method="POST" onSubmit="return iMobile_sendMessage();">
    <input type="hidden" name="task" value="user_send_message" />

    <span class="graytitle">{lang_print id=11340042}</span> 
    <ul class="pageitem"> 
      <li class="select">
        <select id="to" name="to">
          <option value=""></option>
          {if $to_id}
          <option value="{$to_id}" selected="selected">{if $to_user}{$to_user}{else}{$to_id}{/if}</option>
          {/if}
          {foreach from=$friends item=friend}
          <option value="{$friend->user_info.user_username}">{$friend->user_displayname}</option> 
          {/foreach}
        </select>
      </li> 
    </ul>
    <span class="graytitle">{lang_print id=11340043}</span> 
    <ul class="pageitem"> 
      <li class="bigfield">
        <input type="text" id="subject" name="subject" value="{$subject}" maxlength="100" /></li> 
      <li class="textbox">
        {*lang_print id=521*}
        <textarea id="message" name="message" rows="4">{$message}</textarea>
      </li> 
    </ul> 
    <div class="iButtons">
      <input name="submit" type="submit" value="{lang_print id=11340044}" class="iPush" /></li>
    </div>
  </form> 



</div>


{include file='imobile_footer.tpl'}
